package cn.itsource.hrm.feign;

import cn.itsource.hrm.doc.CourseDoc;
import cn.itsource.hrm.fallback.FallbackCourseFeign;
import cn.itsource.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "SERVER-SEARCH",fallbackFactory =FallbackCourseFeign.class )
public interface CourseFeign {
    @RequestMapping(value = "/search/save",method = RequestMethod.POST)
    AjaxResult save(@RequestBody CourseDoc doc);
}
